package com.itheima.service;

import com.itheima.entity.PageResult;
import com.itheima.entity.QueryPageBean;
import com.itheima.entity.Result;
import com.itheima.pojo.Member;
import com.itheima.pojo.User;

import java.util.List;

import java.util.List;
import java.util.Map;

public interface MemberService {
    Member findByTelephone(String telephone);

    void add(Member member);

    // 根据ID 查询 信息
    public Member findMessageByMemberId(Integer id);


    //根据月份查找会员的次数
    Result findMemberCountByMonth();



    // 分页查询
    PageResult findPage(QueryPageBean queryPageBean);

    void edit(Member member);

    void delete(Integer id);
    public Map getAgeDistribution();

    public Result editMemberInfo(Member member);

}
